package LinkedHashMapDemo;

import java.util.LinkedHashMap;

public class LinkedHashMapDemo {
    public static void main(String[] args) {
        LinkedHashMap<String,Integer> linkedHashMap = new LinkedHashMap<>();

        linkedHashMap.put("b",887);
        linkedHashMap.put("c",332);
        linkedHashMap.put("a",119);
        linkedHashMap.put("a",111);

        //预期输出 b = 887,c = 332,a = 111
        System.out.println(linkedHashMap);
    }
}
